package com.sqlcheck.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Builder;

@Data
@Builder
@Schema(description = "SQL示例响应")
public class SqlExampleResponse {

    @Schema(description = "示例ID", example = "oracle-basic")
    private String id;

    @Schema(description = "示例名称", example = "Oracle基础查询")
    private String name;

    @Schema(description = "示例描述", example = "包含Oracle特有函数的基础查询")
    private String description;

    @Schema(description = "示例分类", example = "BASIC")
    private String category;

    @Schema(description = "难度级别", example = "BASIC")
    private String difficulty;

    @Schema(description = "源数据库类型", example = "ORACLE")
    private String sourceDbType;

    @Schema(description = "SQL内容")
    private String content;

    @Schema(description = "预期问题数", example = "3")
    private Integer expectedIssues;

    @Schema(description = "创建时间")
    private java.time.LocalDateTime createdTime;
}